import { requestClient } from '#/api/request'

/**
 * 获取列表
 */
export async function getAdminList(params: any) {
  return requestClient.get('/admin/auth.admin/index', params)
}
/**
 * 获取详细
 */
export async function getAdminInfo(params: any) {
  return requestClient.get('/admin/auth.admin/edit', params)
}

/**
 * 获取详细
 */
export async function getGroupList(params: any) {
  return requestClient.get('/admin/auth.group/index', params)
}

/**
 * 更新
 */
export async function adminUpdata(params: any) {
  return requestClient.post('/admin/auth.admin/edit', params, { responseReturn: 'raw' })
}
/**
 * 新增
 */
export async function adminAdd(params: any) {
  return requestClient.post('/admin/auth.admin/add', params, { responseReturn: 'raw' })
}


/**
 * 新增
 */
export async function adminDel(params: any) {
  return requestClient.delete('/admin/auth.admin/del', params, { responseReturn: 'raw' })
}
